package com.itheima.reggie.service;

import com.itheima.reggie.entity.Orders;
import com.itheima.reggie.entity.Page;
import com.itheima.reggie.entity.R;
import com.itheima.reggie.entity.dto.OrdersDto;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.util.Date;

@Transactional
public interface OrderService {
    void submit(Orders orders, Long userId);

    R<Page<OrdersDto>> userPage(Integer page, Integer pageSize);

    R<Page<Orders>> page(Integer page, Integer pageSize, Long number, Date beginTime, Date endTime);
}
